package com.unlcn.ils.crsc.service.crsc;

import com.unlcn.ils.crsc.dao.model.crsc.CrscOtd;
import com.unlcn.ils.crsc.service.util.BaseException;

import java.util.Date;
import java.util.List;

public interface CrscOTDService {

    /**
     *  读取FTP文件并存入是数据库
     */
    void readFTPFilesToSaveDB(Date date) throws BaseException;

    /**
     * 读取文件
     */
    List<CrscOtd> readFile(String filename,String filepath,String backupPath);

    /**
     * 存储数据库
     */
    void saveDb(List<CrscOtd> crscOtds) throws BaseException;


    /**
     * 得到最近的在途信息
     */
    List<CrscOtd> getOtdsByVin(String vinStrs);

    List<CrscOtd> queryVinDetail(String vinStrs);
}
